package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.SysRolePermissionMapper;
import com.xdf.zipperdye.model.SysRolePermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRolePermissionServiceImpl implements SysRolePermissionService {
    @Autowired
    private SysRolePermissionMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(SysRolePermission record) {
        return dao.insert(record);
    }

    @Override
    public SysRolePermission selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

//    @Override
//    public int updateByPrimaryKeySelective(SysRolePermission record) {
//        return dao.updateByPrimaryKeySelective(record);
//    }

    @Override
    public int updateByPrimaryKey(SysRolePermission record) {
        return dao.updateByPrimaryKey(record);
    }
}
